<?php

namespace app\models;

use yii\db\ActiveRecord;

/**
 * 用户账户
 * Class UserAccount
 * @package app\models
 *
 * @property integer $id PK
 * @property integer $uid 用户编号
 * @property float $money 现金余额
 */
class UserAccount extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            ['money', 'default', 'value' => 0],
        ];
    }
}
